@echo off
echo ========================================
echo Enable Windows Sandbox
echo ========================================
echo.
echo Checking Windows version...
ver | findstr /i "10.0" >nul
if errorlevel 1 (
    echo [ERROR] Windows 10/11 required
    pause
    exit /b 1
)

echo.
echo This will enable Windows Sandbox feature.
echo Administrator privileges required.
echo.
pause

:: Enable Windows Sandbox
echo Enabling Windows Sandbox...
dism /online /Enable-Feature /FeatureName:"Containers-DisposableClientVM" /All /NoRestart

if errorlevel 1 (
    echo [ERROR] Failed to enable Windows Sandbox
    echo Make sure you have Windows 10/11 Pro, Enterprise, or Education
    pause
    exit /b 1
)

echo.
echo ========================================
echo [SUCCESS] Windows Sandbox enabled!
echo ========================================
echo.
echo Please restart your computer to complete the installation.
echo After restart, search for "Windows Sandbox" in Start Menu.
echo.
pause

